package com.dty.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dty.model.base.ColumnModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface ColumnMapper extends BaseMapper<ColumnModel> {
    void addColumn(ColumnModel columnModel);

    List<ColumnModel> selectColumn(ColumnModel columnModel);

    List<ColumnModel> showColumn(Integer whetherClick);

    void offShelfColumn(Integer id,Integer offShelf);

    void deleteColumn(Integer id);

    void updateColumn(ColumnModel columnModel);

    ColumnModel selectColumnById(Integer id);


    void updateSpot(@Param("id") Integer id,@Param("spot") Integer spot);
}
